<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:import href='##all.xsl#'/>
    <xsl:import href='##adminall.xsl#'/>
    <xsl:output method="html" indent="yes" encoding="UTF-8" />

    <xsl:template match='content'>
        <xsl:apply-templates select='document("xdyn://admin.pages.php")' mode='sub'/>
    </xsl:template>

        
    <xsl:template match='/' mode='sub'>
        <p align='left'>
            <h2>Список страниц сайта:</h2>
            <br/>
            <xsl:for-each select='//element'>
                <xsl:value-of select='.'/>
                <br/>
            </xsl:for-each>
            <div class='hr'/>
            <a href='/admin/newpage.html'>Добавить страницу</a>
        </p>
    </xsl:template>
</xsl:stylesheet>